package com.five.author.service;

import com.five.Page.Page;
import com.five.Page.PageList;
import com.five.pojo.Novel;

import java.util.List;

public interface NovelService {
    void insert(Novel novel);

    void deleteById(Long id);

    void updateById(Novel novel);

    Novel selectById(Long id);

    PageList<Novel> selectByPage(Page<Novel> page);

    List<Novel> selectAll();

    /**
     * 根据作者id查询他的小说
     * @param authorId
     * @return
     */
    List<Novel> selectByAuthorId(Long authorId);

    /**
     * 根据小说id修改小说状态
     * @param id
     */
    void updateStatusById(List<Long> id);

    /**
     * 小说审核
     * @param authorId
     * @param novelId
     */
    void novelAudit(Long authorId, List<Long> novelId);
}
